package com.zyb.base.pojo;

import java.io.Serializable;

/**
 * @author ZhuYouBin
 * @version 1.0.0
 * @Date: 2022/11/13 21:34
 * @Description 分页实体类对象
 */
public class PageVo implements Serializable {
    /**
     * 分页页码, 查询哪一页的数据
     */
    private int pageNum;
    /**
     * 每一页显示记录数量
     */
    private int pageSize;
    /**
     * 查询总记录数量
     */
    private long total;
    /**
     * 总页数
     */
    private int pages;
    /**
     * 查询数据结果集
     */
    private Object list;

    public PageVo() {}

    public PageVo(int pageNum, int pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public Object getList() {
        return list;
    }

    public void setList(Object list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "PageVo{" +
                "pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                ", total=" + total +
                ", pages=" + pages +
                ", list=" + list +
                '}';
    }
}
